package com.kylefu.design.pattern.abs.factory;

public class ModernDocumentCreator extends DocumentCreator {

  @Override
  public Letter createLetter() {
    return new ModernLetter();
  }

  @Override
  public Resume createResume() {
    return new ModernResume();
  }

  public class ModernLetter extends Letter {

    @Override
    public void show() {
      System.out.println("ModernLetter");
    }
  }

  public class ModernResume extends Resume {

    @Override
    public void show() {
      System.out.println("ModernResume");
    }
  }
}
